package com.example.gobang_system.websockethandler.result;

import lombok.Data;

import java.io.Serializable;

@Data
public class MatchResult implements Serializable {
    /**
     * 匹配结果
     */
    private String matchMessage;
    private Rival rival;

    @Data
    public static class Rival {
        /**
         * 对手姓名
         */
        private String name;
        /**
         * 天梯分数
         */
        private Long score;
    }

    public MatchResult() {}
    public MatchResult(String matchMessage) {
        this.matchMessage = matchMessage;
    }
}
